package com.itheima.exception;

/**
 * @author Anomaly
 * @date 2023/2/6 20:59
 */
public class ExceptionDemo4 {
    public static void main(String[] args) {
        System.out.println("程序开始。。。。");
        try {
            chu(1, 0);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("程序结束。。。。");
    }

    public static void chu(int a, int b) {
        int c = a / b;
        System.out.println(c);
    }
}
